@extends('layouts.web')

@section('title', '网站排行榜_文章排行榜_'.env('APP_NAME').' - 我们只推荐好网站')
@section('keywords', '网站点击总榜,网站点击日榜,网站点击周榜,网站点击月榜,小程序点击总榜,小程序点击日榜,小程序点击周榜,小程序点击月榜,文章点击总榜,文章点击日榜,文章点击周榜,文章点击月榜')
@section('description', env('APP_NAME').'（www.6nww.com），'.env('APP_NAME').'各种点击排行榜详细榜单。')

@section('content')
    <div class="main-container">
        <div class="layui-row layui-col-space10">
            @if($site)
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header" style="text-align: center">网站点击排行榜</div>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div class="layui-card">
                        <div class="layui-card-header">网站点击总榜</div>
                        <div class="layui-card-body site-top-list">
                            <ul>
                                @foreach($site['all'] as $key=>$v)
                                    <li>
                                        <em>{{ $key+1 }}</em>
                                        <span class="layui-right">{{ $v->views }}</span>
                                        <a href="{{ url('/siteinfo-'.$v->id.'.html') }}" title="{{ $v->name }}">{{ str_limit($v->name,'20','') }}</a>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div class="layui-card">
                        <div class="layui-card-header">网站点击日榜</div>
                        <div class="layui-card-body site-top-list">
                            <ul>
                                @foreach($site['day'] as $key=>$v)
                                    <li>
                                        <em>{{ $key+1 }}</em>
                                        <span class="layui-right">{{ $v->views }}</span>
                                        <a href="{{ url('/siteinfo-'.$v->id.'.html') }}" title="{{ $v->name }}">{{ str_limit($v->name,'20','') }}</a>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div class="layui-card">
                        <div class="layui-card-header">网站点击周榜</div>
                        <div class="layui-card-body site-top-list">
                            <ul>
                                @foreach($site['week'] as $key=>$v)
                                    <li>
                                        <em>{{ $key+1 }}</em>
                                        <span class="layui-right">{{ $v->views }}</span>
                                        <a href="{{ url('/siteinfo-'.$v->id.'.html') }}" title="{{ $v->name }}">{{ str_limit($v->name,'20','') }}</a>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div class="layui-card">
                        <div class="layui-card-header">网站点击月榜</div>
                        <div class="layui-card-body site-top-list">
                            <ul>
                                @foreach($site['month'] as $key=>$v)
                                    <li>
                                        <em>{{ $key+1 }}</em>
                                        <span class="layui-right">{{ $v->views }}</span>
                                        <a href="{{ url('/siteinfo-'.$v->id.'.html') }}" title="{{ $v->name }}">{{ str_limit($v->name,'20','') }}</a>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
            @endif
            @if($article)
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header" style="text-align: center">文章点击排行榜</div>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div class="layui-card">
                        <div class="layui-card-header">文章点击总榜</div>
                        <div class="layui-card-body site-top-list">
                            <ul>
                                @foreach($article['all'] as $key=>$v)
                                    <li>
                                        <em>{{ $key+1 }}</em>
                                        <span class="layui-right">{{ $v->views }}</span>
                                        <a href="{{ url('/artinfo-'.$v->id.'.html') }}" title="{{ $v->title }}">
                                            {{ str_limit($v->title,'20','') }}
                                        </a>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div class="layui-card">
                        <div class="layui-card-header">文章点击日榜</div>
                        <div class="layui-card-body site-top-list">
                            <ul>
                                @foreach($article['day'] as $key=>$v)
                                    <li>
                                        <em>{{ $key+1 }}</em>
                                        <span class="layui-right">{{ $v->views }}</span>
                                        <a href="{{ url('/artinfo-'.$v->id.'.html') }}" title="{{ $v->title }}">
                                            {{ str_limit($v->title,'20','') }}
                                        </a>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div class="layui-card">
                        <div class="layui-card-header">文章点击周榜</div>
                        <div class="layui-card-body site-top-list">
                            <ul>
                                @foreach($article['week'] as $key=>$v)
                                    <li>
                                        <em>{{ $key+1 }}</em>
                                        <span class="layui-right">{{ $v->views }}</span>
                                        <a href="{{ url('/artinfo-'.$v->id.'.html') }}" title="{{ $v->title }}">
                                            {{ str_limit($v->title,'20','') }}
                                        </a>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div class="layui-card">
                        <div class="layui-card-header">文章点击月榜</div>
                        <div class="layui-card-body site-top-list">
                            <ul>
                                @foreach($article['month'] as $key=>$v)
                                    <li>
                                        <em>{{ $key+1 }}</em>
                                        <span class="layui-right">{{ $v->views }}</span>
                                        <a href="{{ url('/artinfo-'.$v->id.'.html') }}" title="{{ $v->title }}">
                                            {{ str_limit($v->title,'20','') }}
                                        </a>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
            @endif
        </div>

    </div>
@endsection
